package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;

/**
 * @author Team Pronto
 * The code that drives the robot. It controls the left and right motors of
 * tank drive.
 */
public class ProntoDrive {

    RobotDrive drive;
    Joystick leftStick, rightStick;
    
    /**
     * @param leftStick The left joystick. Used to control left wheel.
     * @param rightStick The center joystick. Used to control right wheel.
     */
    public ProntoDrive(Joystick leftStick, Joystick rightStick) {
        this.leftStick = leftStick;
        this.rightStick = rightStick;
        
        drive = new RobotDrive(1, 2);
    }
     /**
     * Uses Y inputs of the left stick and center stick to move the robot.
     */
    public void tank() {
        drive.tankDrive(leftStick.getY(), rightStick.getY());
    }
}
